package com.itbupt.infrastructure.persistent.dao;

import cn.bugstack.middleware.db.router.annotation.DBRouter;
import cn.bugstack.middleware.db.router.annotation.DBRouterStrategy;
import com.itbupt.infrastructure.persistent.po.UserBehaviorRebateOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author dingchang
 * @Date 2025/4/9 15:41
 * @Description: 用户行为返利流水订单表
 */

@Mapper
@DBRouterStrategy(splitTable = true)
public interface IUserBehaviorRebateOrderDao {

    /**
     * 插入一条用户行为返利流水订单记录
     * @param userBehaviorRebateOrder UserBehaviorRebateOrder
     */
    void insert(UserBehaviorRebateOrder userBehaviorRebateOrder);

    /**
     * 查询用户行为返利流水订单记录
     * @param userBehaviorRebateOrderReq  userId 和 outBusinessNo
     * @return
     */
    @DBRouter
    List<UserBehaviorRebateOrder> queryOrderByOutBusinessNo(UserBehaviorRebateOrder userBehaviorRebateOrderReq);

}
